/*
FIGURE 2: ordered bar chart showing the percentage of employees covered by PSL mandates in each firm
*/

clear

use "$data_path/refusa_psl_by_county.dta", clear

collapse ///
	(mean) pct_employees_psl_county ///
	, by(q1_employer year)

drop if year!=2020 // focusing on 2020 only
g xaxis = _n // evenly-spaced version of q1_employer (for graphing)
	
/* BAR GRAPH OF % OF FIRM'S WORKERS WITH PSL */
set scheme plotplain

graph bar (mean) pct_employees_psl_county, ///
	over(xaxis, sort(pct_employees_psl_county) label(nolabels)) ///
	yscale(range(100)) ytick(#10) ylabel(#10) ///
	legend(off) ///
	bar(1, color(blue%80)) bar(2, color(blue%80)) bar(3, color(blue%80)) bar(4, color(blue%80)) bar(5, color(blue%80)) bar(6, color(blue%80)) ///
	ytitle("% of Employees in PSL Mandate Place")
graph export "$exhibits_path/Figure 2.pdf", replace
